﻿#pragma once
#include "GLLOSApp.h"
#include "GLLGameApp.h"
#include "GLLVirtualWorld.h"

namespace GLL
{
	/**系统相关的应用实例.*/
	inline OSApp* theApp(){return OSApp::Ptr();}

	/**游戏相关的应用实例.*/
	inline GameApp* theGame(){return theApp()->_game;}

	/**游戏内部的唯一世界.*/
	inline VirtualWorld* theWorld(){return theGame()->_3DWorld;}
};//GLL
